import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class Char extends Applet implements ActionListener{

String st="";
TextArea txt;
Button mygt;
public void init(){
setLayout(new BorderLayout());	
txt = new TextArea();
add("Center",txt);
mygt = new Button("char ir int ");
mygt.addActionListener(this);
add("South",mygt);
}

public void actionPerformed(ActionEvent e)
{for (int i=1; i<256; i++)
{st =st+i+"\t"+ (char) i+"\t";
if (i%5 == 0) {
st=st+"\n ";
txt.append(st); st="";}
}}}
